<?php
namespace bee;

class lists extends DAO
{	public $id;
	public $lvalue;
	public $ltext;
	public $description;
	public $range;
	public $rangename;
	public $ordnr;
	public $status;
	public $extra;

	static function getItem($range, $lValue)
	{
	  $row = new lists();
	  $row->range = $range;
	  $row->lvalue = $lValue;
	  $rs = new rowSet($row);

    if($rs->getRow($row))
    {
      return  $row->description;
    }
	  return false;

	}
}

function getLists($field='lvalue')
{
  $row = new lists();
	$rs = new rowSet($row);
	$retArr = array();
	while ($rs->getRow($row))
	{
	  $retArr[$row->id] = $row->$field;
	}
	return  $retArr;

}

